package dbops;

import java.util.Properties;

import core.PropertiesContainer;
import core.properties.PropertyReader;
import core.properties.RegisteredProperty;
import core.testcases.TestProjectSuperHelper;

/**
 * Description   : Functional Test Script
 * @author angel.tsvetkov
 */

/**
 * Alias class has fields which are needed in Data source determination
 */
public class Alias extends TestProjectSuperHelper
{
	private String USERID;
	
	private String PASSWORD;
	
	private String DB_URL;
	
	private String DB_DRIVER;
	
	public Alias()
	{
		PropertiesContainer propContainer = PropertiesContainer.getInstance();
		
		String driver = propContainer.getDBDriver();
		String url = propContainer.getDBURL();
		String user = propContainer.getDBUsername();
		String pass = propContainer.getDBPassword();
		
		setDB_DRIVER(driver);
		setDB_URL(url);
		setUSERID(user);
		setPASSWORD(pass);
	}

	public String getUSERID() {
		return USERID;
	}

	private void setUSERID(String userid) {
		USERID = userid;
	}

	public String getPASSWORD() {
		return PASSWORD;
	}

	private void setPASSWORD(String password) {
		PASSWORD = password;
	}

	public String getDB_URL() {
		return DB_URL;
	}

	private void setDB_URL(String db_url) {
		DB_URL = db_url;
	}

	public String getDB_DRIVER() {
		return DB_DRIVER;
	}

	private void setDB_DRIVER(String db_driver) {
		DB_DRIVER = db_driver;
	}
	
	
}

